﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/Site.Master" AutoEventWireup="true"
	CodeBehind="Hospitals.aspx.cs" Inherits="Hematology.UserSite.admin.Hospitals" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphRecent" runat="server">
	<hmt:PageTitle runat="server" ID="ptTitle" Text='<%$ Resources:UserSite, resHospitals %>'
		ButtonText='<%$ Resources:UserSite, resWhitespace %>' ButtonCssClass="plus" ShowButton="True"
		TitleButtonType="Hyperlink" NavigateUrl="/admin/Hospitals.aspx?view=Add" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphHeadNews" runat="server">
	<div class="userFullPageContainer">
		<asp:MultiView runat="server" ID="mvHospitals">
			<asp:View runat="server" ID="vHospitalsList">
				<asp:UpdatePanel runat="server" ID="upHosplitalsLocationView">
					<ContentTemplate>
						<div class="adminPanelComboContainer">
							<div class="adminPanelCombo">
								<div class="adminPanelComboTitle">
									<asp:Label runat="server" ID="lblCountryView" Text='<%$ Resources:UserSite, resCountry %>' />
								</div>
								<asp:DropDownList runat="server" ID="ddlCountryView" DataTextField="Name" DataValueField="Id"
									OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged" AutoPostBack="true" />
							</div>
							<div class="adminPanelCombo">
								<div class="adminPanelComboTitle">
									<asp:Label runat="server" ID="lblRegionView" Text='<%$ Resources:UserSite, resRegion %>' />
								</div>
								<asp:DropDownList runat="server" ID="ddlRegionView" DataTextField="Name" DataValueField="Id"
									OnSelectedIndexChanged="ddlRegion_SelectedIndexChanged" AutoPostBack="true" />
							</div>
							<div class="adminPanelCombo">
								<div class="adminPanelComboTitle">
									<asp:Label runat="server" ID="lblCityView" Text='<%$ Resources:UserSite, resCity %>' />
								</div>
								<asp:DropDownList runat="server" ID="ddlCityView" DataTextField="Name" DataValueField="Id"
									OnSelectedIndexChanged="ddlCity_SelectedIndexChanged" AutoPostBack="true" />
							</div>
						</div>
						<asp:Repeater runat="server" ID="rptHospital" OnItemCommand="rptHospital_ItemCommand">
							<HeaderTemplate>
								<div class="userFullPageContainer">
									<div class="adminTableBlock">
										<div class="adminTableRow adminTableRowHeader">
											<div class="adminTableRow300">
												<asp:Label ID="lRoleNameHdr" runat="server" Text='<%$ Resources:UserSite, resAbbreviation %>' />
											</div>
											<div class="adminTableRow300">
												<asp:Label ID="lRoleDescriptionHdr" runat="server" Text='<%$ Resources:UserSite, resHospitalFullName %>' />
											</div>
										</div>
							</HeaderTemplate>
							<ItemTemplate>
								<div class="adminTableRow">
									<div class="adminTableRow300">
										<asp:Label ID="lRoleName" runat="server" Text='<%# Eval("Abbreviation") %>' />
									</div>
									<div class="adminTableRow300">
										<asp:Label ID="lRoleDescription" runat="server" Text='<%# Eval("FullName") %>' />
									</div>
									<div class="adminTableRowIconBlock">
										<div class="adminTableRowIcon">
											<asp:HyperLink ID="btnEditRole" runat="server" NavigateUrl='<%# String.Format("/admin/Hospitals.aspx?view=Edit&id={0}", Eval("JobId")) %>'
												ToolTip="Правка" CssClass="adminTableRowEdit" />
										</div>
										<div class="adminTableRowIcon">
											<asp:LinkButton ID="btnDeleteRole" runat="server" ToolTip="Удалить" CommandName="DeleteJobItem"
												CommandArgument='<%# Eval("JobId") %>' OnClientClick="return confirm('Подтвердите удаление')"
												CssClass="adminTableRowDelete" />
										</div>
									</div>
								</div>
							</ItemTemplate>
							<FooterTemplate>
								</div> </div>
								<div style="clear: both;">
								</div>
							</FooterTemplate>
						</asp:Repeater>
					</ContentTemplate>
				</asp:UpdatePanel>
			</asp:View>
			<asp:View runat="server" ID="vHospitalsEdit">
				<asp:UpdatePanel runat="server" ID="UpdatePanel1">
					<ContentTemplate>
						<div class="adminPanelComboContainer">
							<div class="adminPanelCombo">
								<div class="adminPanelComboTitle">
									<asp:Label runat="server" ID="lblCountryEdit" Text='<%$ Resources:UserSite, resCountry %>' />
								</div>
								<asp:DropDownList runat="server" ID="ddlCountryEdit" DataTextField="Name" DataValueField="Id"
									OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged" AutoPostBack="true" />
							</div>
							<div class="adminPanelCombo">
								<div class="adminPanelComboTitle">
									<asp:Label runat="server" ID="lblRegionEdit" Text='<%$ Resources:UserSite, resRegion %>' />
								</div>
								<asp:DropDownList runat="server" ID="ddlRegionEdit" DataTextField="Name" DataValueField="Id"
									OnSelectedIndexChanged="ddlRegion_SelectedIndexChanged" AutoPostBack="true" />
							</div>
							<div class="adminPanelCombo">
								<div class="adminPanelComboTitle">
									<asp:Label runat="server" ID="lblCityEdit" Text='<%$ Resources:UserSite, resCity %>' />
								</div>
								<asp:DropDownList runat="server" ID="ddlCityEdit" DataTextField="Name" DataValueField="Id"
									OnSelectedIndexChanged="ddlCity_SelectedIndexChanged" AutoPostBack="true" />
								<asp:RequiredFieldValidator ID="vldHospitalCityIsRequired" runat="server" InitialValue="0"
									Display="None" ValidationGroup="vgEditJob" ControlToValidate="ddlCityEdit" ErrorMessage='<%$ Resources:UserSite, resHospitalCityIsRequired %>' />
							</div>
						</div>
					</ContentTemplate>
				</asp:UpdatePanel>
				<div class="editorBlock">
					<div class="editorBlockEditControl">
						<div class="editorBlockTitle">
							<asp:Label runat="server" ID="lblHospitalFullName" Text='<%$ Resources:UserSite, resHospitalFullName %>' />
							<span class="asterisk">
								<asp:Label runat="server" ID="lblHospitalFullNameAsterisk" Text='<%$ Resources:UserSite, resAsterisk %>' />
							</span>
						</div>
						<div class="editorBlockControl">
							<asp:TextBox runat="server" ID="txtHospitalFullName" MaxLength="400" />
							<asp:RequiredFieldValidator ID="vldHospitalFullNameIsRequired" runat="server" ControlToValidate="txtHospitalFullName"
								ErrorMessage='<%$ Resources:UserSite, resHospitalFullNameIsRequired %>' Display="None"
								ValidationGroup="vgEditJob" SetFocusOnError="true" />
						</div>
					</div>
					<div class="editorBlockEditControl">
						<div class="editorBlockTitle">
							<asp:Label runat="server" ID="lblHospitalAbbreviation" Text='<%$ Resources:UserSite, resAbbreviation %>' />
							<span class="asterisk">
								<asp:Label runat="server" ID="lblHospitalAbbreviationAsterisk" Text='<%$ Resources:UserSite, resAsterisk %>' />
							</span>
						</div>
						<div class="editorBlockControl">
							<asp:TextBox runat="server" ID="txtHospitalAbbreviation" MaxLength="100" />
							<asp:RequiredFieldValidator ID="vldHospitalAbbreviationIsRequired" runat="server"
								ControlToValidate="txtHospitalAbbreviation" ErrorMessage='<%$ Resources:UserSite, resHospitalAbbreviationIsRequired %>'
								Display="None" ValidationGroup="vgEditJob" SetFocusOnError="true" />
						</div>
					</div>
					<div class="editorBlockButton">
						<asp:Button runat="server" ID="btnSave" Text='<%$ Resources:UserSite, resSave %>'
							OnClick="btnSave_Click" ValidationGroup="vgEditJob" />
						<asp:Button runat="server" ID="btnList" Text='<%$ Resources:UserSite, resToList %>'
							OnClick="btnList_Click" />
						<asp:ValidationSummary runat="server" ID="vsEditJob" DisplayMode="BulletList" ValidationGroup="vgEditJob"
							ShowMessageBox="True" ShowSummary="False" />
					</div>
				</div>
			</asp:View>
		</asp:MultiView>
	</div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphBody" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cphPanel" runat="server">
</asp:Content>
